{capture name=pageTitle}
	{if $dealer.id == "-1"}
		{t}Create New Career{/t}
	{else}
		{t}Edit Career{/t}
	{/if}
{/capture}
{include file="file:$admin_theme_global_path/_header.tpl" masthead=$smarty.capture.pageTitle
	pageTitle=$smarty.capture.pageTitle current="careers_admin_edit" tinymce=true tinymce_field_id=description}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/careers/admin/index/{/url}">{t}Back To Careers{/t}</a></li>
		{if $success ne null and $success ne ""}
			<li><a href="{url}/careers/admin/edit/id/{$career_id}{/url}">{t}Continue Editing{/t}</a></li>
		{/if}
	</ul>
</div>
<div class="grid_12">
	{if $career ne null}
		<form action="{url}/careers/admin/edit/id/{$career.id}{/url}" method="post" enctype="multipart/form-data">
			<h4>{t}Career Information{/t}</h4>
			<p>
				<label for="job_title">{t}Job Title{/t}</label>
				<input type="text" name="job_title" id="job_title" value="{$career.job_title}" tabindex="10" />
			</p>
			<p>
				<label for="department">{t}Department{/t}</label>
				<input type="text" name="department" id="department" value="{$career.department}" tabindex="10" />
			</p>
			<p>
				<label for="location">{t}Location{/t}</label>
				{html_options name=location_id options=$locations selected=$career.location_id}
			</p>
			<p>
				<label for="description">{t}Description{/t}</label>
				<textarea name="description" id="description" tabindex="20">{$career.description}</textarea>
			</p>
			<p>
				<input type="submit" class="button submit" value="{t}Save Changes{/t}" />
			</p>
		</form>
	{/if}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
